import { Base } from '../../../utils/base.js';
class HomeIndex extends Base {
      constructor() {
      super();
      }

      /*banner图片信息*/
      getBanner(place, callback) {
            var param = {
                  url: 'api/home/slides/read',
                  type: "post",
                  data: place ,
                  sCallback: function (data) {
                        callback && callback(data);
                        console.log(data);
                  }
            };
            this.request(param);
      }

      //公告列表
      getNotice(place, callback) {
          var param = {
            url: '/api/portal/notice/index',
              type: "get",
              data: {},
              sCallback: function (data) {
                callback && callback(data);
              }
          };
        this.request(param);
      }
};
export { HomeIndex };